luci-mod-status,-network: remove checkUfpInstalled
authorDavid Härdeman <[email protected]>
Wed, 15 Oct 2025 13:07:32 +0000 (15:07 +0200)
committerPaul Donald <[email protected]>
Wed, 15 Oct 2025 23:24:42 +0000 (01:24 +0200)
commit50abd15e88c7aaf9a7233d7b42bf07674984c69c
tree858ae9611119eccbf93086aa9f562968c3faccb6
parent3ed815fe4a313d33d20ada59cfb17129fbf217ef
luci-mod-status,-network: remove checkUfpInstalled

Right now, the checkUfpInstalled RPC call is performed first, and only after
that can the other Promises be called. Simplify this by adding a single check
for /usr/sbin/ufpd in the rpcd ucode, and replace calls to checkUfpInstalled()
with simple L.hasSystemFeature('ufpd') check (which is only done once, and
cached).

This also allows the 'stat' permission to be removed from a couple of acls.

Signed-off-by: David Härdeman <[email protected]>
modules/luci-base/root/usr/share/rpcd/ucode/luci
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
modules/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js
modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js
modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json
modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json